package com.platform.common.web.vo;

import com.platform.common.validation.ValidateGroup;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author LENOVO
 * @title: UserVo
 * @date 2019-08-2216:10
 */
@Data
public class SysUserVo {

    // 账号
    @NotEmpty(message = "账号不能为空", groups = {ValidateGroup.LOGIN.class})
    private String username;
    // 密码
    @NotEmpty(message = "密码不能为空", groups = {ValidateGroup.LOGIN.class, ValidateGroup.PSW.class})
    private String password;
    // 验证码
    @NotEmpty(message = "验证码不能为空", groups = {ValidateGroup.LOGIN.class})
    private String captchaCode;
    // 新密码
    @NotEmpty(message = "新密码不能为空", groups = {ValidateGroup.PSW.class})
    private String repassword;

}
